<?php
/**
 * zh_user表的模型
 */

namespace app\common\model;


use think\Model;

class ArtCate extends Model
{
    protected $pk="id";  //主键
    protected $table="zh_article_category";  //默认数据表
    protected $autoWriteTimestamp=true; //自动时间戳
    protected  $createTime='create_time';
    protected  $updateTime='update_time';

    //开启自动设置
    protected  $auto=[];
    //仅新增的有效
    protected  $insert=['create_time','status'=>1];
    //仅更新时设置
    protected $update=['update_time'];

}